package com.xiehua.task.annotation;

import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.List;

public class FixedTaskExecutor implements Serializable{

    private static final long serialVersionUID = 1L;

    private Class<?> classz;

    private String className;

    private String topic;

    private List<TaskExecutor> executors;


    public Class<?> getClassz() {
        return classz;
    }

    public void setClassz(Class<?> classz) {
        this.classz = classz;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public List<TaskExecutor> getExecutors() {
        return executors;
    }

    public void setExecutors(List<TaskExecutor> executors) {
        this.executors = executors;
    }

    public static class TaskExecutor implements Serializable{

        private Method method;

        private String cron;

        private String name;

        public Method getMethod() {
            return method;
        }

        public void setMethod(Method method) {
            this.method = method;
        }

        public String getCron() {
            return cron;
        }

        public void setCron(String cron) {
            this.cron = cron;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
